package sctu.edu.java.year2016.team03.huangbaolian.day20160523.chapter7_2;

/**
 * Created by hbl on 2016/5/24.
 */
public class Child1 {
    int length;
    int wide;
    //用构造方法对对象进行初始化。
    public Child1(int newLength,int newWide){
        length=newLength;
        wide=newWide;
    }
    public void area( ){
        int area;
        area=length*wide;
        System.out.println("矩形的面积是："+area);

    }

}
